package com.xxxt.entity;

import java.util.List;

//班级实体类
public class ClassGrade {
private String classGradeId;//班级ID

private String classGrade;//班级名称

private Grade grade;//与班级关联的年级实体类

private List<Student> students;//与班级关联的学生实体类



public ClassGrade(String classGradeId, String classGrade, Grade grade, List<Student> students) {
	super();
	this.classGradeId = classGradeId;
	this.classGrade = classGrade;
	this.grade = grade;
	this.students = students;
}

public ClassGrade(String classGradeId, String classGrade, Grade grade) {
	super();
	this.classGradeId = classGradeId;
	this.classGrade = classGrade;
	this.grade = grade;
}

public ClassGrade(String classGradeId) {
	super();
	this.classGradeId = classGradeId;
}

public ClassGrade(String classGrade, Grade grade, List<Student> students) {
	super();
	this.classGrade = classGrade;
	this.grade = grade;
	this.students = students;
}
public ClassGrade() {}

public String getClassGradeId() {
	return classGradeId;
}

public void setClassGradeId(String classGradeId) {
	this.classGradeId = classGradeId;
}

public String getClassGrade() {
	return classGrade;
}

public void setClassGrade(String classGrade) {
	this.classGrade = classGrade;
}


public Grade getGrade() {
	return grade;
}

public void setGrade(Grade grade) {
	this.grade = grade;
}

public List<Student> getStudents() {
	return students;
}

public void setStudents(List<Student> students) {
	this.students = students;
}

@Override
public String toString() {
	return "ClassGrade [classGradeId=" + classGradeId + ", classGrade=" + classGrade + ", grade=" + grade
			+ ", students=" + students + "]";
}
}
